package com.javafactroy.kunlong.api.entity;

import lombok.Data;

import com.javafactroy.kunlong.client.feign.dto.PageInfoDto;
import javax.persistence.Column;
import javax.persistence.*;
//import javax.persistence.Id;
import lombok.experimental.Accessors;

/**
*  @author raymond.lei@163.com
*  @date   2023-11-05 10:43:14
*  @file   DepartmentApiEntity.java
*  @company farben.sz.com
*
*/
@Data
@Table(name="department")
@Accessors(chain = true)
public class DepartmentApiEntity   extends PageInfoDto {

    		// id dataType:int
		@Column(name="id")
		@Id
		@GeneratedValue(strategy = GenerationType.IDENTITY,generator = "Mysql")
		Integer  id;

		// 编码 dataType:varchar
		@Column(name="code")
		String  code;

		// 部门名称 dataType:varchar
		@Column(name="name")
		String  name;

		// parentId dataType:int
		@Column(name="parentId")
		Integer  parentId;

		// depPath dataType:varchar
		@Column(name="depPath")
		String  depPath;

		// enabled dataType:bit
		@Column(name="enabled")
		Boolean  enabled;

		// isParent dataType:tinyint
		@Column(name="isParent")
		Integer  isParent;

		// 负责人 dataType:int
		@Column(name="mngrId")
		Integer  mngrId;

		// 0-部门 1-班组 dataType:int
		@Column(name="type")
		Integer  type;


}